The CMagmaEdit Class -------------------- The CEdit editor class from the Microsoft Foundation Classes (MFC) has a limitation in that it cannot edit more than 64K bytes of text. The Magma Editor DLL overcomes this restriction by allowing you to edit text as large as the memory which Microsoft Windows will globally allocate. We have created a new MFC class called CMagmaEdit which is inherited from the CEdit class. Most of the editing operations which are supported by the CEdit class are also supported by the CMagmaEdit class. In addition, the Magma Editor DLl has the following features : - Regular expression search and substitution - Various block operations. Line marking, column marking, block marking, and discontiguous line marking. - Keyboard macros - Messages to read and write to files. - More varieties of cursor movement. Ability to jump to a specific line, and to set bookmarks in the text. - The ability to be in overstrike as well as in insert mode. A full list of features can be found by reading the file EDITOR.DOC which is enclosed in this file. The CMagmaEditView Class ------------------------ The CEditView class from the Microsoft Foundation Classes is used as a wrapper around the CEdit class in order to create text editing windows which contain more capabilities than the standard CEdit class offers. For example, using the CEditView class, you can easily build an MDI-based text editor which incorporates search-and-replace and printing. The Multipad sample application is a good demonstration of the CEditView class. In a few lines, one can build a full MDI-based text editor. We have enhanced Multipad so that it uses the CMagmaEditView and the CMamaEdit classes. We have also enhanced Multipad so that more information is displayed in the status line. Using the CMagmaEditView class instead of the CEditView class is as easy as substituting the string 'CMagmaEditView' for 'CEditView'. The only change which we originally made in the Multipad source code to use the CMagmaEditView class was in the following statement : AddDocTemplate(new CMultiDocTemplate(IDR_TEXTTYPE, RUNTIME_CLASS(CPadDoc), RUNTIME_CLASS(CMDIChildWnd), RUNTIME_CLASS(CEditView))); was changed to AddDocTemplate(new CMultiDocTemplate(IDR_TEXTTYPE, RUNTIME_CLASS(CPadDoc), RUNTIME_CLASS(CMDIChildWnd), RUNTIME_CLASS(CMagmaEditView))); ^^^^^^^^^^^^^^ We have enclosed the full source code to the CMagmaEditView and CMagmaEdit classes. The files of interest are MAGMAED.CPP and MAGMAED.HPP. You may feel free to enhance these files, but if you do, we at Magma Systems would appeciate hearing about any good changes you made.